package com.shuaibiao.entity.base;

import java.io.Serializable;

/**
 * 
 * @author Administrator
 * 
 *
 */
public class JsonResult implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Integer code;
	
	private String msg;
	
	private Long count;
	
	private Object data;
	
	public JsonResult(){
		this(0,"操作成功");
	}

	public JsonResult(Integer code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}
	
	public JsonResult(Integer code, String msg, Object data) {
		super();
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Long getCount() {
		return count;
	}

	public void setCount(Long l) {
		this.count = l;
	}

	
	
}
